package com.zh.work.entity.merch;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.data.mongodb.core.mapping.Document;


/**
 * code is far away from bug with the animal protecting
 * ┏┓　　　┏┓
 * ┏┛┻━━━┛┻┓
 * ┃　　　　　　　┃
 * ┃　　　━　　　┃
 * ┃　┳┛　┗┳　┃
 * ┃　　　　　　　┃
 * ┃　　　┻　　　┃
 * ┃　　　　　　　┃
 * ┗━┓　　　┏━┛
 * 　　┃　　　┃神兽保佑
 * 　　┃　　　┃代码无BUG！
 * 　　┃　　　┗━━━┓
 * 　　┃　　　　　　　┣┓
 * 　　┃　　　　　　　┏┛
 * 　　┗┓┓┏━┳┓┏┛
 * 　　　┃┫┫　┃┫┫
 * 　　　┗┻┛　┗┻┛
 *
 * @Description: 渠道商户
 * @Author: Liard
 * @Create in: 2020/6/13 16:53
 * @Version: 1.0.1
 */
@Document("channel_merch")
@ApiModel("渠道商户实体类信息")
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("channel_merch")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ChannelMerchant extends Model<ChannelMerchant> {

    private static final long serialVersionUID = -4170092937079922758L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @ApiModelProperty(value = "商户简称", name = "channelCode")
    private String channelCode;
    @ApiModelProperty(value = "渠道商户编号", name = "channelCode")
    @TableField(value = "channel_merchno")
    private String channelMerchno;
    @ApiModelProperty(value = "渠道商户名称", name = "channelCode")
    private String channelMerchName;
    @ApiModelProperty(value = "渠道费率编号", name = "channelCode")
    private String feeTypeId;
    @ApiModelProperty(value = "平台商户编号", name = "channelCode")
    @TableField("platform_merchno")
    private String platformMerchNo;
    @ApiModelProperty(value = "结算类型(1-T+1 2-T+0)", name = "channelCode")
    private String settleType;
    @ApiModelProperty(value = "分公司编码", name = "channelCode")
    @TableField(value = "branchno")
    private String branchNo;
    @ApiModelProperty(value = "地区编码", name = "channelCode")
    private String areaCode;
    @ApiModelProperty(value = "省份编码", name = "channelCode")
    private String province;
    @ApiModelProperty(value = "市区编码", name = "channelCode")
    private String city;
    @ApiModelProperty(value = "费率类别(1-普通类 2-优惠类)", name = "feeType")
    private String feeType;
    @ApiModelProperty(value = "清算方(1-平台清算 2-渠道清算)", name = "channelCode")
    private String liquidator;


}
